package com.cmc.cloud.cmclink.doc.vo.blnovo.sichangevo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Objects;

/**
 * @author 周贤
 * @date 2025/10/9
 */
@Schema(description = "si 可更改的主信息")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BlnoChangeChildVO {

    @Schema(description = "提单类型")
    private String blType;

    @Schema(description = "客户要求签单类型")
    private String signOrder;

    @Schema(description = "路径id")
    private Long routeId;

    @Schema(description = "接货地")
    private String porCode;

    @Schema(description = "装货港")
    private String polCode;

    @Schema(description = "卸货港")
    private String podCode;

    @Schema(description = "目的地")
    private String delCode;

    @Schema(description = "订舱船名")
    private String bkgVesselCode;

    @Schema(description = "订舱航次")
    private String bkgVoyage;

    @Schema(description = "接货地名称")
    private String porDesc;

    @Schema(description = "装货港名称")
    private String polDesc;

    @Schema(description = "卸货港名称")
    private String podDesc;

    @Schema(description = "目的地名称")
    private String delDesc;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof BlnoChangeChildVO)) {
            return false;
        }
        BlnoChangeChildVO that = (BlnoChangeChildVO) o;
        return Objects.equals(getBlType(), that.getBlType()) &&
                Objects.equals(getSignOrder(), that.getSignOrder()) &&
                Objects.equals(getRouteId(), that.getRouteId()) &&
                Objects.equals(getPorCode(), that.getPorCode()) &&
                Objects.equals(getPolCode(), that.getPolCode()) &&
                Objects.equals(getPodCode(), that.getPodCode()) &&
                Objects.equals(getDelCode(), that.getDelCode()) &&
                Objects.equals(getBkgVesselCode(), that.getBkgVesselCode()) &&
                Objects.equals(getBkgVoyage(), that.getBkgVoyage()) &&
                Objects.equals(getPorDesc(), that.getPorDesc()) &&
                Objects.equals(getPolDesc(), that.getPolDesc()) &&
                Objects.equals(getPodDesc(), that.getPodDesc()) &&
                Objects.equals(getDelDesc(), that.getDelDesc());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getBlType(), getSignOrder(), getRouteId(), getPorCode(), getPolCode(), getPodCode(), getDelCode(), getBkgVesselCode(), getBkgVoyage(), getPorDesc(), getPolDesc(), getPodDesc(), getDelDesc());
    }
}
